package com.bestdreamer.formats;

public class B extends A {

    public B(){
        System.out.println("Class B");
    }
    {
        System.out.println("I'm B class");
    }
    static {
        System.out.println("class B static");
    }

    public static void main(String[] args) {
        new B();
    }
}

class A{
    public A(){
        System.out.println("Class A");
    }

    {
        System.out.println("I'm A class");
    }

    static {
        System.out.println("class A static");
    }
}
